package ofmybatis.demo.service.impl;

import ofmybatis.demo.dao.master.UserInfoMapper;
import ofmybatis.demo.pojo.UserInfo;
import ofmybatis.demo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo getUserInfo() {

        return userInfoMapper.findUser();
    }
}
